package com.tanguy.user.ui.me.activity

import com.tanguy.user.Const
import com.tanguy.user.R
import com.tanguy.user.base.ImmersionTitleActivity
import com.tanguy.user.ui.me.activity.account.ChangePhoneActivity
import com.tanguy.user.ui.me.activity.account.PhoneActivity
import com.tanguy.user.utlis.extend.click
import org.jetbrains.anko.startActivity

/**
 * Created by dab on 2017/10/10 0010 09:17
 * 安全页面
 */
class SafetyActivity : ImmersionTitleActivity() {
    override fun setContentViewRes(): Int = R.layout.activity_safety
    override fun initView() {
        super.initView()
        title = "账户安全"
        click(R.id.ttv_change_mobile) { startActivity<ChangePhoneActivity>() }
        click(R.id.ttv_change_password) {
            startActivity<PhoneActivity>(Const.IntentCode.VERIFY_PHONE to 2)
        }
    }
}